<?php
namespace app\controller;

use app\BaseController;
use think\facade\Db;


class AccountController extends BaseController
{
    public function index()
    {
        $list=Db::name('account')->order('id','desc')->paginate(3);
        return view('list',['list'=>$list]);
    }
    public function create(){
        return view('create');
    }
    public function add(){
        $data=$this->request->param();
        Db::name('account')->save($data);
    }
}